from rest_framework import serializers
from .models import *


# 1. 分类序列化器
class CateSer(serializers.ModelSerializer):

    class Meta:
        model = Cate
        fields = '__all__'


# 2. 商品序列化器
class GoodsSer(serializers.ModelSerializer):

    class Meta:
        model = Goods
        fields = '__all__'




